package com.ftg.learn.common.util;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author 布衣
 */
@Data
@Component
@ConfigurationProperties(prefix = "jwt.secret")
@ToString
public class SecretBeanUtil {

    @Value("${jwt.secret.privateKey}")
    public  String privateKey;
    @Value("${jwt.secret.publicKey}")
    public  String publicKey;

}
